package com.linq.cool.pay.service;

import com.linq.cool.common.core.domain.Result;
import com.linq.cool.common.core.utils.JsonUtils;

/**
 * @Author: yqlin
 * @Date: 2021/1/20 22:12
 * @Description:
 * @Version: 1.0.0
 */
public class TestPay {
    public static void main(String[] args) {
        String outTradeNo = "12013313513513513513151996213321";
        String subject = "LINQ后台管理系统支付平台";
        String totalAmount = "55";
        String undiscountableAmount = null;
        String body = "洗车支出";
        String notifyUrl = "http://linqxyz.top/alipay/callback/" + outTradeNo;
        Result<?> result = AlipayService.pay(outTradeNo, subject, totalAmount, undiscountableAmount, body, notifyUrl);
        System.out.println(JsonUtils.printJson(result));
    }
}
